package com.xuecheng.commons.model.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;

import java.util.Date;

/**
 * @author Sober_wxy
 * @date 2022/8/1 10:36
 */
@ContentRowHeight(15)
@HeadRowHeight(20)
@ColumnWidth(15)
public class OrdersExcelVo {
        @ExcelIgnore
        private Long id;
        @ColumnWidth(50)
        @ExcelProperty(value = "订单号", index = 0)
        private String orderNo;
        @ExcelProperty(value = "课程ID", index = 1)
        private Long coursePubId;
        @ExcelProperty(value = "课程名称", index = 2)
        private String coursePubName;
        @ExcelProperty(value = "挂账用户ID", index = 3)
        private Long userId;
        @ExcelProperty(value = "挂账机构ID", index = 4)
        private Long companyId;
        @ExcelProperty(value = "状态码", index = 5)
        private Integer status;
        @ExcelProperty(value = "金额", index = 6)
        private Long price;
        @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
        @ColumnWidth(25)
        @ExcelProperty(value = "挂账时间", index = 7)
        private Date createDate;

}
